﻿@model VideoCache.Server.MVCWeb.Areas.Admin.Models.EpisodeModel

@{
    ViewBag.Title = "新建剧集";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
@section script
{
<script type="text/javascript">
    $(document).ready(function () {
        $("#Url").blur(function () {
            
        });
    });
</script>
}
<h2 class="pageTitle">@ViewBag.Title</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
<table class="table-form" width="100%">
        <tr>
            <td class="label">@Html.LabelFor(model => model.AlbumId)</td>
            <td>
            @Html.TextBoxFor(model => model.AlbumId, new { @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.AlbumId)
            </td>
        </tr>
        <tr>
            <td class="label">@Html.LabelFor(model => model.SiteId)
        </td>
        <td>
            @Html.DropDownList("SiteId", "请选择站点")
            @Html.ValidationMessageFor(model => model.SiteId)
        </td>
        </tr>
        <tr>
            <td class="label">@Html.LabelFor(model => model.EpisodeIndex)
        </td>
        <td>
            @Html.EditorFor(model => model.EpisodeIndex)
            @Html.ValidationMessageFor(model => model.EpisodeIndex)
        </td>
        </tr>
        <tr>
            <td class="label">@Html.LabelFor(model => model.Name)
        </td>
        <td>
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </td>
        </tr>
        <tr>
            <td class="label">@Html.LabelFor(model => model.Url)
        </td>
        <td>
            @Html.TextBoxFor(model => model.Url, new { @class="textLongInput"})
            @Html.ValidationMessageFor(model => model.Url)
        </td>
        </tr>
        <tr>
            <td class="label">@Html.LabelFor(model => model.Token)
        </td>
        <td>
            @Html.TextBoxFor(model => model.Token, new { @class = "textLongInput" })
            @Html.ValidationMessageFor(model => model.Token)
        </td>
        </tr>
        <tr>
            <td class="label">@Html.LabelFor(model => model.AllowDownload)
        </td>
        <td>
            @Html.EditorFor(model => model.AllowDownload)
            @Html.ValidationMessageFor(model => model.AllowDownload)
        </td>
        </tr>
        <tr>
            <td class="label"></td>
            <td>
                <input type="submit" value="新建" />
                <a href="@Url.Action("Index", new { id = Request.QueryString["albumid"] })">返回</a>
            </td>
        </tr>
</table>
}
